<?php
	global $_W,$_GPC;
	if($_W['role']&&$_W['isajax']){
		$uid = $_GPC['uid'];
		$o = pdo_get('mii_ang_user',array('uid'=>$uid),array('openid'));
		$openid = $o['openid'];
		if($o['openid']){
			$code = array('status'=>'1','msg'=>'获取成功','code'=>$openid);
			exit(json_encode($code));
		}else{
			$code = array('status'=>'2','msg'=>'获取失败');
			exit(json_encode($code));
		}

	}else{
		$code = array('status'=>'2','msg'=>'没有操作权限');
		exit(json_encode($code));
	}



?>